package com.blb.educourseservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.common.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 查询所有课程
     * @return
     */
    List<Course> selectAll();

    /**
     * 根据id查询课程
     * @param id
     * @return
     */
    Course selectById(Long id);
}
